<?phpuse Illuminate\Database\Eloquent\Model;class taskmemberModel extends Model{	protected $table 		= 'task_member';	public	  $primaryKey	= 'id';    public $timestamps = false;    protected $appends = [        'task_status_text',        'reward_status_text',    ];    public function getTaskStatusTextAttribute()    {        return $this->attributes['task_status'] ==1 ? '已完成' : '未完成';    }    public function getRewardStatusTextAttribute()    {        return $this->attributes['reward_status'] ==2 ? '奖励结束' : ($this->attributes['reward_status'] ==1 ? '奖励中' : '未奖励');    }    protected function serializeDate($date)    {        return $date->format('Y-m-d H:i:s');    }    public function task()    {        return $this->belongsTo(taskModel::class, 'task_id');    }    public function member()    {        return $this->belongsTo(memberModel::class, 'member_id')->select('id', 'avatar', 'nickname', 'level', 'phone');    }}